package com.cbn.ibcp.common.exception;

import com.cbn.ibcp.common.constant.HttpStatus;

public class BusinessException extends RuntimeException {
    // getter和setter方法
    private Integer code = HttpStatus.ACCEPTED;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
